<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品分类列表</title>
    <link rel="stylesheet" th:href="@{/css/admin.css}">
</head>
<body>



    <table class="tab_list">
        <tr class="tab_title">
            <th>分类编号</th>
            <th>分类名称</th>
            <th>操作</th>
        </tr>
        <th:block th:each="category:${categoryList}">
            <tr style="text-align: center">
                <td th:text="${category.categoryId}"></td>
                <td th:text="${category.categoryName}"></td>
                <th>
                    <a th:href="@{/admin/category/update_show(categoryId=${category.categoryId})}">修改</a>
                    <a href="/admin/category/add">添加</a>
                </th>
            </tr>
        </th:block>
    </table>


</body>
</html>